package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.domain.TravelContent;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelQuery;
import com.github.pagehelper.PageInfo;

/**
 * Created by 13925 on 2018/10/28.
 */

/**
 * 游记服务层
 */
public interface ITravelService {
    /**
     * 游记分页查询
     *
     * @param qo
     * @return
     */
    PageInfo query(TravelQuery qo);

    /**
     * 游记添加
     * @param travel
     */
    void save(Travel travel);

    /**
     * 查询单个游记
     * @param id
     * @return
     */
    Travel get(Long id);

    void  update(Travel travel);

    void changeState(Travel travel);

    TravelContent getTravelContent(Long id);
}
